package org.pangu.test.listener;

/**
 * @author zhangyj
 * @date 2022/7/13 23:30
 * 事件
 */
public class Event {
    private String data;//事件源
    private String type;

    Event(String data, String type) {
        this.data = data;
        this.type = type;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "Event{" +
                "data='" + data + '\'' +
                ", type='" + type + '\'' +
                '}';
    }
}
